package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.response.response.AccountDealerDto;

import java.util.List;
import java.util.Map;

public interface AccountDealerService extends RootService {

	/**
	 * 获取账户关联经销商id
	 * 
	 * @param accountId
	 *            账户id
	 * @return
	 */
	public AccountDealerDto getAccountDealer(Integer accountId);

	/**
	 * 根据条件获取关联经销商数据
	 * @param param
	 * @return
	 */
	public List<AccountDealerDto> getAccountDealerByParam(Map<String, Object> param);

	/**
	 * 插入数据到数据库
	 * @param bean
	 * @return
	 */
	public int createAccountDealer(AccountDealerDto bean);

	/**
	 * 通过账户id删除关联数据
	 * @param accountId
	 * @return
	 */
	public int deleteByAccountId(int accountId);
}
